home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 8: LINUX Games
/
Linux Cubed Series 8 - LINUX Games.iso
/
games
/
x11
/
strategy
/
xpuzzles.3
/
xpuzzles
/
xpuzzles-5.3.1
/
xrubik
/
Rubik2dP.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-02-05
|
2KB
|
75 lines
/*
# X-BASED RUBIK'S CUBE(tm)
#
# Rubik2dP.h
#
###
#
# Copyright (c) 1994 - 96 David Albert Bagley, bagleyd@hertz.njit.edu
#
# All Rights Reserved
#
# Permission to use, copy, modify, and distribute this software and
# its documentation for any purpose and without fee is hereby granted,
# provided that the above copyright notice appear in all copies and
# that both that copyright notice and this permission notice appear in
# supporting documentation, and that the name of the author not be
# used in advertising or publicity pertaining to distribution of the
# software without specific, written prior permission.
#
# This program is distributed in the hope that it will be "playable",
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
*/
/* Private header file for Rubik2d */
#ifndef _Rubik2dP_h
#define _Rubik2dP_h
#include "Rubik2d.h"
#define FRONTLOC 0
#define BACKLOC 11
#define COORD2D 8
#define MAXX 3
#define MAXY 4
#define MAXXY 4 /* (MAX(MAXX,MAXY)) */
#define MAXRECT (MAXX*MAXY)
typedef struct _Rubik2DPart
{
Position cubeLength;
Position faceLength;
Position viewLength;
} Rubik2DPart;
typedef struct _Rubik2DRec
{
CorePart core;
RubikPart rubik;
Rubik2DPart rubik2d;
} Rubik2DRec;
/* This gets around C's inability to do inheritance */
typedef struct _Rubik2DClassPart
{
int ignore;
} Rubik2DClassPart;
typedef struct _Rubik2DClassRec
{
CoreClassPart core_class;
RubikClassPart rubik_class;
Rubik2DClassPart rubik2d_class;
} Rubik2DClassRec;
extern Rubik2DClassRec rubik2dClassRec;
extern int SelectPolyhedrons2D();
extern int NarrowSelection2D();
extern void DrawSquare2D();
#endif /* _Rubik2dP_h */